package com.example.dao;

import com.example.mapper.CustomerMapper;
import com.example.pojo.Customer;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Component;

@Component
public class CustomerDao {
    @Autowired
    private CustomerMapper customerMapper;

    public Customer findByIdCard(String idCard) {
        return customerMapper.selectByPrimaryKey(idCard);
    }

    public Customer findById(Long id) {
        return customerMapper.selectByPrimaryKey(id);
    }
}
